]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
Background: add a comment for questionable GSettings usage
authorGiovanni Campagna <gcampagna@gnome.org>
Fri, 20 Mar 2015 19:39:01 +0000 (12:39 -0700)
committerGiovanni Campagna <gcampagna@gnome.org>
Fri, 27 Mar 2015 20:11:22 +0000 (13:11 -0700)
BackgroundSource relies on Background to watch its own settings.
Add a comment to explain that.

https://bugzilla.gnome.org/show_bug.cgi?id=746509

js/ui/background.js

index 82928e7710445315c6fa1f50ee7177fea9bea5cf..5acff9fda0ca088d88e795d58bc110a3a8a9bc72 100644 (file)
@@ -527,6 +527,10 @@ const BackgroundSource = new Lang.Class({
         let file = null;
         let style;
 
+        // We don't watch changes to settings here,
+        // instead we rely on Background to watch those
+        // and emit 'changed' at the right time
+
         if (this._overrideImage != null) {
             file = Gio.File.new_for_path(this._overrideImage);
             style = GDesktopEnums.BackgroundStyle.ZOOM; // Hardcode